package com.linsir.auth.modules.oauth.service.impl;

import com.linsir.auth.dto.OAuth2DetailsDto;
import com.linsir.auth.modules.oauth.service.OAuth2UserDetailsService;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.provisioning.UserDetailsManager;
import org.springframework.stereotype.Service;

/*@Service*/
public class OAuth2DetailsServiceImpl implements OAuth2UserDetailsService , UserDetailsManager {
    @Override
    public void createUser(UserDetails user) {

    }

    @Override
    public void updateUser(UserDetails user) {

    }

    @Override
    public void deleteUser(String username) {

    }

    @Override
    public void changePassword(String oldPassword, String newPassword) {

    }

    @Override
    public boolean userExists(String username) {
        return false;
    }

    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
      OAuth2DetailsDto oAuth2DetailsDto = new OAuth2DetailsDto();
      oAuth2DetailsDto.getMemoryDetails();
      return oAuth2DetailsDto;
    }
}
